package cn.dengta.webapp.trade.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 活动相关配置
 */
@Component
@Getter
@Setter
@ConfigurationProperties(prefix = "act")
public class ActivityConfig implements InitializingBean {

	/** 万圣节礼物 id */
	private Long giftId;
	/** 万圣节头像 id */
	String avatarId;
	/** 万圣节奖励vip天数 */
	Integer vipDay;
	/** 万圣节奖励视频卡时长 */
	Integer videoTime;
	/** 万圣节奖励视频卡过期天数 */
	Integer videoDay;
	/** 万圣节动态类型id */
	Long dynamicTagId;

	public static Long GIFT_ID = null;
	public static Long DYNAMIC_TAG_ID = null;

	@Override
	public void afterPropertiesSet() throws Exception {
		GIFT_ID = this.giftId;
		DYNAMIC_TAG_ID = this.dynamicTagId;
	}

}
